package com.dog.basics.service.mtkj;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dog.basics.bean.dto.admin.mtkj.GoodsEvaluateFromDto;
import com.dog.basics.bean.dto.api.mtkj.ApiGoodsEvaluateAddDto;
import com.dog.basics.bean.dto.api.mtkj.ApiGoodsEvaluateEditDto;
import com.dog.basics.bean.dto.api.mtkj.ApiGoodsEvaluateFromDto;
import com.dog.basics.bean.model.mtkj.MtGoodsEvaluate;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dog.basics.bean.vo.admin.mtkj.GoodsEvaluateVo;
import com.dog.basics.bean.vo.api.mtkj.ApiGoodsEvaluateVo;
import com.dog.basics.common.util.PageParam;

import java.util.List;

/**
 * <p>
 * 商品评价表 服务类
 * </p>
 *
 * @author wph
 * @since 2020-11-09
 */
public interface IMtGoodsEvaluateService extends IService<MtGoodsEvaluate> {
    /**
     * @Description: 分页商品评价列表 pc
     * @Param: status
     * @return: IPage<PlatePageVo>
     * @Author: wph
     * @Date:
     */
    IPage<GoodsEvaluateVo> getPageList(PageParam page, GoodsEvaluateFromDto obj);
    /**
     * @Description: 分页我的商品评价列表
     * @Param: status
     * @return: IPage<PlatePageVo>
     * @Author: wph
     * @Date:
     */
    IPage<ApiGoodsEvaluateVo> getApiPageList(PageParam page, ApiGoodsEvaluateFromDto obj);


    /**
     * @Description: 增加我的商品评价
     * @Param: ApiGoodsEvaluateAddDto
     * @return: Boolean
     * @Author: wph
     * @Date: 2020/05/29  0027
     */
    Boolean saveObj(ApiGoodsEvaluateAddDto obj);

    /**
     * @Description: 修改我的商品评价
     * @Param: ApiGoodsEvaluateEditDto
     * @return: Boolean
     * @Author: wph
     * @Date: 2020/05/29  0027
     */
    Boolean editObj(ApiGoodsEvaluateEditDto obj);


    /**
     * @Description: 删除我的商品评价
     * @Param: ids
     * @return: Boolean
     * @Author: wph
     * @Date: 2020/05/29  0027
     */
    Boolean deleteObj(Long id);

    /**
     * @Description: 删除商品评价
     * @Param: ids
     * @return: Boolean
     * @Author: wph
     * @Date: 2020/05/29  0027
     */
    Boolean deleteObjs(List<Long> id);
}
